<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

    <div class="banner_box"><img src="<?php echo image_url('banner.jpg'); ?>"></div>

    <div class="page_contact">
        <div class="phone_last">
            <select>
                <?php if ($category) : ?>
                    <?php foreach ($category as $key => $val) : ?>
                        <option value="<?php echo "/product/" . $val['id'] . ".html"; ?>" <?php if($val['id'] == $cid){ ?>selected<?php } ?>><?php echo $val['category_name'] ?? ""; ?></option>
                    <?php endforeach; ?>
                <?php endif; ?>
            </select>
        </div>
        <div class="class_menu">
            <h1>墙布系列</h1>
            <ul>
                <?php if ($category) : ?>
                    <?php foreach ($category as $key => $val) : ?>
                        <li><a href="<?php echo "/product/" . $val['id'] . ".html"; ?>" <?php if($val['id'] == $cid){ ?>class="on" <?php } ?>><?php echo $val['category_name'] ?? ""; ?></a></li>
                    <?php endforeach; ?>
                <?php endif; ?>
            </ul>
        </div>
        <div class="page_show">
            <div class="web_site">
                您当前的位置：<a href="/">首页</a> &gt; <a href="#">墙布系列</a> &gt; 精品提花系列
            </div>
            <div class="pro_list">
                <ul>
                    <?php if ($products) : ?>
                        <?php foreach ($products as $key => $val) : ?>
                            <li>
                                <a href="<?php echo "/product_show/" . $val['id'] . ".html"; ?>">
                                    <img src="<?php echo $val['img']; ?>">
                                    <span><?php echo $val['title']; ?></span>
                                </a>
                            </li>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </div>
<?php $this->load->view('common/footer'); ?>